package com.qiwenshare.file.dto.user;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@Schema(name = "修改用户密码DTO",required = true)
public class ModifyPasswordDTO {

    @Schema(description = "原密码", required = true, example = "原密码")
    @NotBlank(message = "原密码不能为空")
    private String oldPassword;

    @Schema(description = "新密码", required = true, example = "新密码")
    @NotBlank(message = "新密码不能为空")
    private String newPassword;

}
